<?php


return [
    [
        'name'        => 'all_redirect',
        'label'       => '全部跳转',
        'type'        => 'select',
        'options'     => [
            [
                'value' => '1',
                'label' => '开启'
            ],
            [
                'value' => '0',
                'label' => '关闭'
            ],
        ],
        'required'    => true,
        'description' => '开启后，任何请求（包括正常用户的）都直接跳代理地址',
    ],
    [
        'name'        => 'do_redirect_type',
        'label'       => '拦截方式',
        'type'        => 'select',
        'options'     => [
            [
                'value' => '1',
                'label' => '使用手动输入ip和cloakplus接口双重拦截'
            ],
            [
                'value' => '2',
                'label' => '仅使用手动输入ip拦截'
            ],
            /**
            [
                'value' => '3',
                'label' => '仅使用手动输入ip拦截和ipinfo接口双重拦截'
            ],
             * **/
        ],
        'required'    => true,
        'description' => '',
    ],
    [
        'name'        => 'ips',
        'label'       => '要拦截的ip',
        'type'        => 'textarea',
        'required'    => false,
        'rules'       => '',
        'description' => '多ip之间使用英文逗号分割',
    ],
    [
        'name'        => 'username',
        'label'       => '用户名',
        'type'        => 'string',
        'required'    => false,
        'rules'       => 'required',
        'description' => '申请地址：https://cloakplus.com',
    ],
    [
        'name'        => 'password',
        'label'       => '密码',
        'type'        => 'string',
        'required'    => false,
        'rules'       => 'required',
        'description' => '',
    ],
    [
        'name'        => 'country',
        'label'       => '允许国家',
        'type'        => 'textarea',
        'required'    => false,
        'rules'       => 'required',
        'description' => '允许的国家地区代码，多个用半角逗号分隔，ALL为允许全部',
    ],
    [
        'name'        => 'mode',
        'label'       => '模式',
        'type'        => 'select',
        'options'     => [
            [
                'value' => '0',
                'label' => '默认'
            ],
            [
                'value' => '1',
                'label' => '朝鲜模式'
            ],
            [
                'value' => '2',
                'label' => '静默模式'
            ],
        ],
        'required'    => false,
        'description' => '默认值0 {0为默认模式 1为朝鲜模式(针对部分小国公共ip多的情况，减少误判) 2为静默模式(只做地区和客户端判断，不考虑系统黑名单 )}',
    ],
    [
        'name'        => 'mobile',
        'label'       => '客户端',
        'type'        => 'select',
        'options'     => [
            [
                'value' => '0',
                'label' => '不限制'
            ],
            [
                'value' => '1',
                'label' => '仅手机'
            ],
            [
                'value' => '2',
                'label' => '仅PC'
            ],
        ],
        'required'    => false,
        'description' => '',
    ],
/**
    [
        'name'        => 'ipinfo_token',
        'label'       => 'ipinfo的token',
        'type'        => 'string',
        'required'    => false,
        'rules'       => '',
        'description' => 'https://ipinfo.io/developers',
    ],
    [
        'name'        => 'ipinfo_org',
        'label'       => '拦截ipinfo的org',
        'type'        => 'string',
        'required'    => false,
        'rules'       => '',
        'description' => '如要拦截facebook,填写facebook,ipinfo返回的org数据中存在facebook的请求就会被拦截。多个org关键词时，使用英文逗号隔开',
    ],
 * **/
    [
        'name'        => 'cache',
        'label'       => '缓存',
        'type'        => 'select',
        'options'     => [
            [
                'value' => '1',
                'label' => '开启'
            ],
            [
                'value' => '0',
                'label' => '关闭'
            ],
        ],
        'required'    => false,
        'description' => '',
    ],

];
